﻿using System.Threading.Tasks;

namespace AbpProjectTemplate.Components.Notifications.SMS
{
    /// <summary>
    /// 短信发送服务
    /// </summary>
    public interface ISmsSender
    {
        /// <summary>
        /// 发送短信验证码
        /// </summary>
        Task SendMobileCodeAsync(string mobile, string code);
        /// <summary>
        /// 验证短信验证码
        /// </summary>
        Task<bool> ValidateMobileCodeAsync(string mobile, string code);
    }
}

